#include<bits/stdc++.h>
typedef unsigned long long ull;
using namespace std;
int main() {
  ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  int tc; cin>>tc;
  while(tc--) {
    ull a, b; cin>>a>>b;
    if(b==1) {
      cout<<"NO\n";
    }
    else {
      cout<<"YES\n"<<a<<' '<<a*b<<' '<<a*(b+1)<<'\n';
    }
  }
}
